package com.example.botany_api.service;

import com.example.botany_api.bean.Curing;

import com.example.botany_api.mapper.CuringMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 漫画忧作
 * @Date 2022/11/5 0:23
 * @Version 1.0
 */
@Service
public class CuringService {
    @Autowired
    CuringMapper curingMapper;
    //    管理员植物图库
//    分页
    public List getCuring(String name, String summary, String type, int current, int size) {
        return curingMapper.getCuring(name, summary, type, current, size);
    }

    //    总数
    public int getCuringTotal(String name, String summary, String type) {
        return curingMapper.getCuringTotal(name, summary, type);
    }

    //    删除植物图库
    public int dl_Curing(int id) {
        return curingMapper.dl_Curing(id);
    }


    //    添加植物图库
    public int add_Curing(Curing curing) {
        return curingMapper.add_Curing(curing);
    }

    //    修改植物图库
    public int up_Curing(Curing curing) {
        return curingMapper.up_Curing(curing);
    }

}
